  <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <script type="text/javascript">
 $(document).ready(function(){
	 $.get('${pageContext.request.contextPath}/getMenu.do',function(result){
			//console.log(result);
			$(".layui-side-scroll").html(result);

			 
			layout();
		});
 })

</script>
  <div class="layui-layout layui-layout-admin ">
  <div class="layui-header header header-demo ">
  <div class="layui-main">
  	<a class="logo" href="/">
      易数宝广告投放智能决策系统
    </a>
    <a class="exit" href="${pageContext.request.contextPath}/logout.do">
    	退出
    </a>
  </div>
  </div>
  
   <div class="layui-side layui-bg-cyan">
   <div class="layui-side-scroll">
 <script type="text/javascript">
 



function layout(){
	
	   $('.layui-side').find('a').each(
	     		function(){
	     			
	     			if($(this).attr('href')==(window.location.pathname+window.location.search)){
	     				
	     				$(this).parent().parent().parent().addClass('layui-nav-itemed');
	     				$(this).parent().attr('class','layui-this');
	     				return false;
	     				
	     			}
	     			
	     		}		
	     );
	   
	   layui.use(['element', 'layer'], function(){
			  var element = layui.element();
			  var layer = layui.layer;
			  
			  //监听折叠
			  element.on('collapse(test)', function(data){
			    layer.msg('展开状态：'+ data.show);
			    console.log("展开了");
			  });
		});
	 
   	}
   

</script>
 <!-- 菜单     
<ul class="layui-nav layui-nav-tree site-demo-nav">
  <li class="layui-nav-item layui-nav-itemed">
    <a class="javascript:;" href="javascript:;">sem工作台<span class="layui-nav-more"></span></a>
    <dl class="layui-nav-child " >
      <dd>
        <a href="${pageContext.request.contextPath}/csvController.do?index">上传数据</a>
      </dd>
      <dd>
      	<a href="${pageContext.request.contextPath}/companyController.do?showSemCompany">推广客户管理</a>
      </dd>
    </dl>
  </li>
  </ul>
  <ul class="layui-nav layui-nav-tree site-demo-nav">
  <li class="layui-nav-item">
    <a class="javascript:;" href="javascript:;">经理工作台<span class="layui-nav-more"></span></a>
    <dl class="layui-nav-child">
      <dd>
        <a href="${pageContext.request.contextPath}/companyController.do?showCompany">公司及推广账号管理</a>
      </dd>
      <dd>
        <a href="${pageContext.request.contextPath}/industryController.do?showIndustry">行业-象限信息管理</a>
      </dd>
      	
    </dl>
  </li>
  </ul>
  <ul class="layui-nav layui-nav-tree site-demo-nav">
  <li class="layui-nav-item">
  	<a class="javascript:;" href="javascript:;">系统管理<span class="layui-nav-more"></span></a>
  	 <dl class="layui-nav-child">
  	 	 <dd>
  	 	 	 <a href="${pageContext.request.contextPath}/userController.do?showUser">用户管理</a>
  	 	 </dd>
  	 </dl>
  </li>
  </ul>
  --> 
</div>
</div>

<div class="layui-tab layui-tab-brief" lay-filter="demoTitle">
<div class="layui-body layui-tab-content site-demo site-demo-body">